package org.ricks.common.conf;

/**
 * @author chenwei
 * @Title:
 * @Package
 * @Description:
 * @date 2020/8/1019:53
 */

@org.ricks.common.conf.ConfProperties(prefix = "redis.")
public class JedisConfig {

    private static String host;

    private static int port;

    private static String password;

    private static int db;

    private static int timeout;

    public static void setHost(String host) {
        JedisConfig.host = host;
    }

    public static void setPort(int port) {
        JedisConfig.port = port;
    }

    public static void setPassword(String password) {
        JedisConfig.password = password;
    }

    public static void setDb(int db) {
        JedisConfig.db = db;
    }

    public static void setTimeout(int timeout) {
        JedisConfig.timeout = timeout;
    }

    public static String getHost() {
        return host;
    }

    public static int getPort() {
        return port;
    }

    public static String getPassword() {
        return password;
    }

    public static int getDb() {
        return db;
    }

    public static int getTimeout() {
        return timeout;
    }
}
